package com.mall.model.entity.Pms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

 /**
 * 价格规则表
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "价格规则表",description = "")
@TableName("pms_price_rule")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PmsPriceRule implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** sku id */
    @Schema(name = "sku id",description = "")
    private Long skuId;
    /** 促销时间起始 */
    @Schema(name = "促销时间起始",description = "")
    private Date startTime;
    /** 促销时间结束 */
    @Schema(name = "促销时间结束",description = "")
    private Date endTime;
    /** 价格类型;0:原价 1:促销价 2:会员价 */
    @Schema(name = "价格类型",description = "0:原价 1:促销价 2:会员价")
    private Integer priceType;
    /** 折扣比例;x:1-100之间,x% */
    @Schema(name = "折扣比例",description = "x:1-100之间,x%")
    private Integer discount;
    /** 最小起订量 */
    @Schema(name = "最小起订量",description = "")
    private Integer minOrder;
    /** 状态;0:禁用 1:启用 */
    @Schema(name = "状态",description = "0:禁用 1:启用")
    private Integer status;
}